package com.xbongbong.pro.opportunity.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author 吴峰
 * @version v1.0
 * @date 2019/3/19 15:52
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class OpportunityStageSyncDTO extends BaseDTO {

    private static final long serialVersionUID = 1336170542900090581L;

    @NotNull(message = "{dto.msg.common.formId.NotNull}")
    private Long formId;

    @NotNull(message = "{dto.msg.stageProcessEnable.stageProcessId.NotNull}")
    private Long stageProcessId;

    /**
     * 同步进行中的商机阶段实例，0不同步、1同步
     */
    @Min(value = 0, message = "{dto.msg.productExplain.attr.NotNull}")
    @Max(value = 1, message = "{dto.msg.productExplain.attr.NotNull}")
    @NotNull(message = "{dto.msg.productExplain.attr.NotNull}")
    private Integer syncInProgress;

    /**
     * 同步结束阶段的商机阶段实例，0不同步、1同步
     */
    @Min(value = 0, message = "{dto.msg.productExplain.attr.NotNull}")
    @Max(value = 1, message = "{dto.msg.productExplain.attr.NotNull}")
    @NotNull(message = "{dto.msg.productExplain.attr.NotNull}")
    private Integer syncWinOrLoss;
}
